#ifndef __DAL_LED_H
#define __DAL_LED_H
/* includes ----------------------------------------------------------*/
#include "hdl_led.h"
#include "stm32f4xx.h"
#include <stdbool.h>
/* typedef -----------------------------------------------------------*/
struct led_device
{
    void (*init)(cfg_led_pin_t pin_sturct[], uint8_t len);
    void (*led_on)(GPIO_TypeDef*, uint16_t);
    void (*led_off)(GPIO_TypeDef*, uint16_t);
};
/* define ------------------------------------------------------------*/
#define LED_MAX_NUM (3)
#define COMM_LED (0)
#define WARN_LED (1)
#define TASK_LED (2)
/* variables ---------------------------------------------------------*/
/* function prototypes -----------------------------------------------*/

extern void vdal_led_init(void);

extern void vdal_led_on(GPIO_TypeDef* port, uint16_t pin);

extern void vdal_led_off(GPIO_TypeDef* port, uint16_t pin);

extern void vdal_led_ctrl(uint8_t num, FunctionalState state);

#endif
